/**
 * jims
 */
package com.jims.master.modules.drug.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.beans.Transient;
import java.util.Date;

/**
 * Entity
 * @author 系统管理员
 * @version 2017-03-28
 */
public class DrugStorageProfile extends DataEntity<DrugStorageProfile> {
	
	private static final long serialVersionUID = 1L;
	private String drugCode;		// 药品编码
	private String infoId;		// drugInfoId
	private String storageId;		// 库存单位
	private String packageNum;		// 包装数量
	private String packageSpec;		// 包装规格
	private String packageUnits;		// 包装单位
	private String maxQuantity;		// 小包装库存量上限
	private String minQuantity;		// 小包装库存量下限
	private String storageName;		// 单位名称

    //临时字段
    private String drugName;    //药品名称
    private String quantity;    //当前库存量数
    private String outQuantity; //消耗量
    private Date startDate;    //药品消耗开始时间
    private Date stopDate;    //药品消耗结束时间

    @Transient
    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    @Transient
    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    @Transient
    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    @Transient
    public Date getStopDate() {
        return stopDate;
    }

    public void setStopDate(Date stopDate) {
        this.stopDate = stopDate;
    }

    @Transient
    public String getOutQuantity() {
        return outQuantity;
    }

    public void setOutQuantity(String outQuantity) {
        this.outQuantity = outQuantity;
    }

    public DrugStorageProfile() {
		super();
	}

	public DrugStorageProfile(String id){
		super(id);
	}

	@Length(min=1, max=32, message="药品编码长度必须介于 1 和 32 之间")
	public String getDrugCode() {
		return drugCode;
	}

	public void setDrugCode(String drugCode) {
		this.drugCode = drugCode;
	}
	
	@Length(min=1, max=64, message="drugInfoId长度必须介于 1 和 64 之间")
	public String getInfoId() {
		return infoId;
	}

	public void setInfoId(String infoId) {
		this.infoId = infoId;
	}
	
	@Length(min=1, max=64, message="库存单位长度必须介于 1 和 64 之间")
	public String getStorageId() {
		return storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}
	
	@Length(min=0, max=8, message="包装数量长度必须介于 0 和 8 之间")
	public String getPackageNum() {
		return packageNum;
	}

	public void setPackageNum(String packageNum) {
		this.packageNum = packageNum;
	}
	
	@Length(min=1, max=20, message="包装规格长度必须介于 1 和 20 之间")
	public String getPackageSpec() {
		return packageSpec;
	}

	public void setPackageSpec(String packageSpec) {
		this.packageSpec = packageSpec;
	}
	
	@Length(min=1, max=2, message="包装单位长度必须介于 1 和 2 之间")
	public String getPackageUnits() {
		return packageUnits;
	}

	public void setPackageUnits(String packageUnits) {
		this.packageUnits = packageUnits;
	}
	
	public String getMaxQuantity() {
		return maxQuantity;
	}

	public void setMaxQuantity(String maxQuantity) {
		this.maxQuantity = maxQuantity;
	}
	
	public String getMinQuantity() {
		return minQuantity;
	}

	public void setMinQuantity(String minQuantity) {
		this.minQuantity = minQuantity;
	}
	@Transient
	public String getStorageName() {
		return storageName;
	}
	@Transient
	public void setStorageName(String storageName) {
		this.storageName = storageName;
	}
}